package org.example;

public class FizzBuzz {
    public String getFizzBuzz(Integer number) {
        if (satisfyToReturnFizz(number)) {
            return "Fizz";
        } else if (satisfyToReturnBuzz(number)) {
            return "Buzz";
        }
        return number.toString();
    }

    private Boolean satisfyToReturnBuzz(Integer number) {
        return number % 5 == 0;
    }

    private Boolean satisfyToReturnFizz(Integer number) {
        return number % 3 == 0;
    }
}
